package com.zjbd.shuaiyanglive.controller;

import com.zjbd.shuaiyanglive.service.ILiveService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/shuaiyang/live")
public class LiveController {



    @Autowired
    private ILiveService iLiveService;

    @GetMapping("/getLiveList")
    public String getLiveList(){
        return "这是直播间列表";
    }

    /**
     * 直播打赏接口
     */
    @GetMapping("/liveTip")
    public String liveTip(){
        log.info("1、请求的进入");
        String s = iLiveService.liveTip(101);
        return s;
    }
}
